Skip to content

fix(benchmark): close T2 ground truth and evaluator provenance gaps - #71

Merged
HarryHeYu merged 1 commit into
mainfrom
fix/benchmark-ground-truth-and-verdict
Nov 21, 2026
Merged

HarryHeYu merged 1 commit into
mainfrom
fix/benchmark-ground-truth-and-verdict

Conversation

@HarryHeYu

Copy link
Copy Markdown
Owner

What changed

Closes the two remaining Level 2 benchmark correctness gaps before any real Agent run.

  1. T2 ground truth is now self-consistent. The old goal said normalize() should lower-case by default while the visible/hidden tests expected 'Hi'; a no-op keep_case parameter passed both suites. T2 now keeps the original visible behaviour, makes keep_case=True the backward-compatible default, and its hidden test requires normalize(' Hi ', keep_case=False) == 'hi'.
  2. T1 default clamp is pinned. Hidden test adds assert add(8, 9) == 10 so a wrong default (clamp=5) can no longer pass.
  3. Evaluator and Runner codes are separated. evaluate_repo() no longer feeds the pytest return code into classify_outcome() as an Agent Runner code. Hidden-test failure is labelled hidden_tests_failed with runner_returncode: None / runner_status: NOT_EXECUTED; pytest's code is reported only as evaluator_returncode. classify_outcome() preserves both codes distinctly.

Evidence

  • Red baseline: 5 failed / 26 passed in tests/test_agent_continuity_benchmark.py.
  • After the fix: 31 passed; with test_docs.py: 60 passed.
  • Four minimal mutations each turn the matching gate red:
    • remove T2's keep_case=False hidden assertion;
    • drop evaluator_returncode propagation;
    • relabel evaluator failure as runner_failed;
    • remove T1's default-clamp assertion.
  • git diff --check clean; CRLF preserved.

Boundaries

  • No Level 1 result, scorer, Store/Bridge schema or product ranking change.
  • No live agent, model, paid call or GUI was started.
  • No real session, home, index or credential was read.
  • Live Agent effectiveness remains LIVE_MODEL_NOT_VERIFIED; OS-level isolation remains BLOCKED.

Copilot AI balanced review requested due to automatic review settings November 21, 2026 04:37

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@HarryHeYu
HarryHeYu merged commit d0d4797 into main Nov 21, 2026
10 checks passed
@HarryHeYu
HarryHeYu deleted the fix/benchmark-ground-truth-and-verdict branch November 21, 2026 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants